import http from "../utils/http";
// export const fetchItem = function(data) {
//   return Promise.resolve({
//     id: data,
//     item: "item" + data,
//     title: "item" + data,
//   });
// };

export const fetchItem = function(data) {
  return http.get("item", {
    params: { id: data },
  });
};
